/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jeff.springWebTestNG.service;

import com.jeff.springWebTestNG.TracingService;
import javax.annotation.Resource;
import org.springframework.core.task.SyncTaskExecutor;
import org.springframework.core.task.TaskExecutor;

/**
 *
 * @author winnie
 */
@TracingService
public class SpringTaskExecutorDemoService implements ISpringTaskExecutorDemoService {
    @Resource
    private TaskExecutor threadPooltaskExecutor;

    @Override
    public void executeThreadPoolTask(Runnable task) {
        threadPooltaskExecutor.execute(task);
    }

    
}
